import React from 'react';
import RenderDOM from 'react-dom';
import { ConnectedRouter } from 'connected-react-router';
import configStore,{historyRouter} from '@store/index';
import {Provider} from 'react-redux';
import renderRouter from '@routes/index';
import '@assets/styles/public.less';
import {ConfigProvider} from 'antd';
import zhCN from 'antd/lib/locale/zh_CN';
import 'antd/dist/antd.css';

const store = configStore();

RenderDOM.render(
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
      <ConnectedRouter history={historyRouter}>
        {renderRouter}
      </ConnectedRouter>
    </ConfigProvider>
  </Provider>,
  document.getElementById("root")
)




